//
//  MineTableViewCell.m
//  网络FM
//
//  Created by dengzhicheng on 15/5/26.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "MineTableViewCell.h"

@implementation MineTableViewCell

- (void)dealloc
{
    [_aImage release];
    [_bImage release];
    [_lable release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createView];
    }
    return self;
}

- (void)createView
{
    UIView *subView = [[UIView alloc] initWithFrame:CGRectMake(0, 40, [[UIScreen mainScreen] bounds].size.width / 5 * 3, [[UIScreen mainScreen] bounds].size.height / 15)];
    [subView setBackgroundColor:[UIColor colorWithRed:210 / 255.0 green:210 / 255.0 blue:210 / 255.0 alpha:0.2f]];
    subView.layer.cornerRadius = 5;
    subView.clipsToBounds = YES;
    [self.contentView addSubview:subView];
    [subView release];
    
    self.aImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 20, 20)];
    [_aImage setBackgroundColor:[UIColor clearColor]];
    [subView addSubview:_aImage];
    [_aImage release];
    
    self.lable = [[UILabel alloc] initWithFrame:CGRectMake(40, 10, [[UIScreen mainScreen] bounds].size.width / 2 - 20, 20)];
    [_lable setBackgroundColor:[UIColor clearColor]];
    [subView addSubview:_lable];
    [_lable release];
    
    self.bImage = [[UIImageView alloc] initWithFrame:CGRectMake(10 + [[UIScreen mainScreen] bounds].size.width / 2, 10, 20, 20)];
    [_bImage setBackgroundColor:[UIColor clearColor]];
    [subView addSubview:_bImage];
    [_bImage release];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
